package com.laozhao.mxbean;

import java.beans.ConstructorProperties;

/**
* @author 作者  zhaoyu E-mail:774463266@qq.com
* @version 创建时间：2019年2月11日 下午2:20:55
* @description 
*/
public class ServerConfigure implements ServerConfigureMBean {   
	  
    private int port;   
       
    private String host;   
       
    private int maxThread;   
       
    private int minThread;   
    
    /**  
     * 加入@ConstructorPropertiesz注解  
     */  
    @ConstructorProperties({"port", "host", "maxThread", "minThread"})     
    public ServerConfigure(int port, String host, int maxThread, int minThread) {   
        this.port = port;   
        this.host = host;   
        this.maxThread = maxThread;   
        this.minThread = minThread;   
    }   
  
    public int getPort() {   
        return port;   
    }   
  
    public void setPort(int port) {   
        this.port = port;   
    }   
  
    public String getHost() {   
        return host;   
    }   
  
    public void setHost(String host) {   
        this.host = host;   
    }   
  
    public int getMaxThread() {   
        return maxThread;   
    }   
  
    public void setMaxThread(int maxThread) {   
        this.maxThread = maxThread;   
    }   
  
    public int getMinThread() {   
        return minThread;   
    }   
  
    public void setMinThread(int minThread) {   
        this.minThread = minThread;   
    }   
       
}  
